<script setup>

</script>
<template>
    <div class="common-layout">
        <el-container>
            <el-header style="width: 100%;background-color: rgba(18, 15, 15,0.5);">
                <div class="header">
                    <img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.dazQhMMjKvbzdcd7iCeF-wHaHa?w=202&h=202&c=7&r=0&o=5&dpr=1.3&pid=1.7"
                        alt="">
                    <div class="index">
                        <RouterLink active-class="active" to="/home/userhome">首页</RouterLink>
                        <RouterLink active-class="active" to="/home/activity">活动</RouterLink>
                        <RouterLink active-class="active" to="/home/coser">coser</RouterLink>
                        <RouterLink active-class="active" to="">二刺螈</RouterLink>
                    </div>
                    <div class="search">
                        <input type="text">
                        <el-button>搜索</el-button>
                    </div>
                    <div class="username">
                        <RouterLink to="/home/user">
                            <img class="userimg" src="https://ts1.cn.mm.bing.net/th/id/R-C.30b685e211d09036c0a0a60427469748?rik=V3kNzi9WuWUJVA&riu=http%3a%2f%2f5b0988e595225.cdn.sohucs.com%2fimages%2f20190916%2f1f2286619ee14290b29c14ab13077835.jpeg&ehk=0RwXvdox0Avpfwxm%2fN2C%2b6FBOtKN4EnrYfficy3TxUc%3d&risl=&pid=ImgRaw&r=0" alt="">
                        <div>勤勤1好</div>
                        </RouterLink>
                    </div>
                    <div class="login">
                        <RouterLink to="/">退出登录</RouterLink>
                    </div>
                </div>

            </el-header>
            <el-main class="bodymain">
                <RouterView></RouterView>
            </el-main>
            <el-footer class="footer">
                <div class="footercontent"> 
                    此页面由勤勤1好制作
                </div>
            </el-footer>
        </el-container>
    </div>
</template>
<style scoped>

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    width: 1000px;
    height: 60px;

}
.footer {
    height: 100px;
    width: 100%;
    background-color: rgba(18, 15, 15, 0.5);
}

.index {
    display: flex;
    width: 200px;
    align-items: center;
    justify-content: space-between;
    margin-left: 100px;
    margin-right: 200px;
}

.header img {

    height: 80%;
}

.search {
    flex: 1
}

.active {
    color: orange;
}
.footercontent{
    padding-top: 40px;
    margin: auto;
    width: 1000px;
    text-align: center;
}
.username{
    text-align: center;
    color: wheat;
}
.userimg{
    width: 20px;
    height: 20px;
    border-radius: 40px;
    border: 1px solid white;
}
a {
    color: aliceblue;
    text-decoration: none;
}
.login{
    padding-left: 20px;
}
</style>